package com.zjc.yohoshop.di.modules;

import com.zjc.yohoshop.mvp.contract.HomeContract;
import com.zjc.yohoshop.mvp.model.HomeModel;

import dagger.Module;
import dagger.Provides;

/**
 * HomeModules->HomeActivity下需要注入的presenter
 * 的仓库
 * */
@Module
public class HomeModules {
    private HomeContract.IHomeView iView;
    public HomeModules(HomeContract.IHomeView iView){
        this.iView = iView;
    }

    @Provides
    public HomeContract.IHomeView providerIHomeView(){
        return iView;
    }

    @Provides
    public HomeContract.IHomeModel providerIHomeModel(){
        return new HomeModel();
    }

}
